if (HasUpgrade("{shipmed}")) and (HasUpgrade("{sails}")) then
ShowStoryText("Fortunately your ship is heavy enough that it is being pulled towards the whirlpool rather slowly, and those high quality sails you bought ensure that it makes maximum use of the winds to carry it to safety. A wise investment, it would seem, as otherwise that could have been fatal.");
AddCaptainsLog("Avoided a whirlpool.");
else
CrewID = math.random(0, CrewCount);
CrewName = GetCrewName(CrewID);
KillCrew(CrewID);
ShowStoryText("Sadly your ship is just not up to the task of escaping such powerful forces, and still you are pulled inexorably towards the churning, swirling waters of the whirlpool. The ship lurches, casually tossing " .. CrewName .. " overboard, and it is only through a fortunate strong wind that you are able to pull the ship back to safety just before the sea claims the rest of you.");
AddCaptainsLog("Was almost pulled into a whirlpool, but not without loss of life.");